<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>管理后台</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link type="text/css" rel="stylesheet" href="${_appPath!}/css/index.css"/>
<script type="text/javascript" src="${_appPath!}/js/page.js"></script>
<style>
  body {background:#000;}
  table.input th {color:#fff; height:30px;}
  table.input td.button input {background-color:#ffb008; text-shadow:0 1px 0 #7e6b5a;}
</style>
<script type="text/javascript">
  function login(fm) {
    postForm(fm.action, fm, function(data){
      if(data.ret) {
        if(window.parent && window.parent.loadMenu) {
          window.parent.loadMenu();
          window.setTimeout(reload, 1000);
        } else {
          if(data.data=="9") {
            window.alert(data.msg);
            window.location = "${_appPath!}/chgpwd";
          } else {
            reload();
          }
        }
      } else {
        window.alert(data.msg);
      }
    });
    return false;
  }
  function reload() {
    window.location = "${backUrl!}";
  }
</script>
</head>
<body>
<table width="100%" height="100%">
  <tr><td align="center">
    <form id="fm_login" method="post" action="${_appPath!}/_login" onsubmit="return login(this);">
      <table class="input">
        <tr><td colspan="2" align="center" height="80"><img src="${_appPath!}/images/logo.gif"/></td></tr>
        <tr><th>用户名：</th><td><input type="text" name="loginName" req="用户名" size="14" maxlength="20" /></td></tr>
        <tr><th>密　码：</th><td><input type="password" name="password" req="密码" size="14" maxlength="20" /></td></tr>
        <tr><td colspan="2" class="button"><input type="submit" value="登录" /></td></tr>
        <tr><td colspan="2" height="30"></td></tr>
      </table>
    </form>
  </td></tr>
</table>
</body>
</html>